package com.mks.demo.controller;

import com.mks.demo.entity.WkTest;
import com.mks.demo.service.WkTestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (WkTest)表控制层
 *
 * @author makejava
 * @since 2020-12-03 15:20:09
 */
@RestController
@RequestMapping("wkTest")
public class WkTestController {
    /**
     * 服务对象
     */
    @Resource
    private WkTestService wkTestService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public WkTest selectOne(Long id) {
        return this.wkTestService.queryById(id);
    }

}